<div class="signup">
	<div style="text-align: center;"><?php echo validation_errors(); ?></div>
	<form class="userform" id="signupForm" action="<?=site_url(array("c"=>"user", "m"=>"signup"))?>" method="post">
		<h2><?=lang('signup')?></h2>
		<label>Login Name (*): </label>
		<input name="item_loginname" type="text" class="input-text required minlength[5] maxlength[32]" value="<?= set_value('item_loginname'); ?>"/>
		<label>Password (*): </label>
		<input name="password" id="password" type="password" class="input-text required" value=""/>
		<label>Confirm Password (*): </label>
		<input name="password_conf" type="password" class="input-text required" value=""/>
		<label>First Name: </label>
		<input name="item_first_name" type="text" class="input-text" value="<?= set_value('item_first_name'); ?>"/>
		<label>Last Name: </label>
		<input name="item_last_name" type="text" class="input-text" value="<?= set_value('item_last_name'); ?>"/>
		<label>Email (*): </label>
		<input name="item_email" type="text" class="input-text required email maxlength[32]" value="<?= set_value('item_email'); ?>"/>
		<label>City: </label>
		<input name="item_city" type="text" class="input-text" value="<?= set_value('item_city'); ?>"/>
		<label>Address: </label>
		<textarea name="item_address" cols="31" rows="3"><?= set_value('item_address'); ?></textarea>
		<label>Home Phone: </label>
		<input name="item_home_phone" type="text" class="input-text" value="<?= set_value('item_home_phone'); ?>"/>
		<label>Cell Phone: </label>
		<input name="item_cell_phone" type="text" class="input-text" value="<?= set_value('item_cell_phone'); ?>"/>
		<div class="input-text actions">
			<input type="submit" name="submit" value="<?=lang('submit')?>"/><br/>
		</div>
	</form>
</div>
<script language="JavaScript" type="text/javascript">
// Login form
$(document).ready(function() {
	jQuery("#signupForm").validate({
		rules: {
	    	password: "required",
	    	password_conf: {equalTo: "#password"}
		}
	});
});
</script>
